package com.ncwu.category.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ncwu.common.annotation.Excel;
import com.ncwu.common.core.domain.TreeEntity;

/**
 * 商品类目管理对象 tb_category
 * 
 * @author RainFly
 * @date 2025-05-13
 */
public class TbCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @Excel(name = "主键ID")
    private Long id;

    /** 类目名称 */
    @Excel(name = "类目名称")
    private String categoryName;

    /** 类目图片 */
    @Excel(name = "类目图片")
    private String categoryImage;

    /** 类目排序 */
    @Excel(name = "类目排序")
    private Long categorySort;

    /** 类目状态 */
    @Excel(name = "类目状态")
    private Long categoryStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    public void setCategoryImage(String categoryImage) 
    {
        this.categoryImage = categoryImage;
    }

    public String getCategoryImage() 
    {
        return categoryImage;
    }

    public void setCategorySort(Long categorySort) 
    {
        this.categorySort = categorySort;
    }

    public Long getCategorySort() 
    {
        return categorySort;
    }

    public void setCategoryStatus(Long categoryStatus) 
    {
        this.categoryStatus = categoryStatus;
    }

    public Long getCategoryStatus() 
    {
        return categoryStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryName", getCategoryName())
            .append("categoryImage", getCategoryImage())
            .append("categorySort", getCategorySort())
            .append("parentId", getParentId())
            .append("categoryStatus", getCategoryStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
